<?php if(!defined('IN_BKUP')) exit('Request Error!'); ?>
<form name="form" id="form" method="post" action="?action=export">
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="ltable">
		<tr >
			<th width="5%"><input type="checkbox" name="checkall" onclick="CheckAllBtn(form)" value="check" checked="checked" /></th>
			<th align="left"  width="30%">表名</th>
			<th  width="25%">记录数</th>
			<th  width="25%">数据大小[共<?php if(isset($total_size)){echo GetRealSize($total_size);}else{echo '0B';} ?>]</th>
			<th  width="15%" class="endCol">操作</th>
		</tr>
		<?php 
		if(is_array($name))
		{
			$i = 0;
			foreach($name as $i => $tbname)
			{
				
		?>
		<tr  align="center"  onmouseover="this.className='dataTrOn'" onmouseout="this.className='dataTr'">
			<td  class="firstCol"><input type="checkbox" name="tbname[]" value="<?php echo $tbname; ?>" checked="checked" /></td>
			<td align="left" ><?php echo $tbname ?></td>
			<td><?php echo $rows[$i]?></td>
			<td><?php echo $size[$i]?></td>
			<td class="action endCol"><span><a href="?action=export&dopost=struct&tbname=<?php echo $tbname; ?>">结构</a></span> | <span><a href="?action=export&dopost=repair&tbname=<?php echo $tbname?>">修复</a></span> | <span class="nb"><a href="?action=export&dopost=optimize&tbname=<?php echo $tbname?>">优化</a></span></td>
		</tr>
		<?php
			}
			$i++;
		}
		?>
	</table>
<div class="line20"></div>
<div class="pagelist">
  <div class="l-btns">
    <span>选择：</span><span><a href="javascript:CheckAll(form,true);">全部</a></span> - <span><a href="javascript:CheckAll(form,false);">无</a> </span> - <span><a href="#" onclick="Repair('?action=export&dopost=repair')">修复</a> </span> - <span><a href="#" onclick="Repair('?action=export&dopost=optimize')">优化</a> </span> 

  </div>
  <div class="l-btns">
   <span class="inputArea">备份表结构：
		<input type="checkbox" name="isstruct" value="1" checked="checked" />&nbsp;分卷大小：
		<input type="text" name="fsize" class="sort"  value="2048" size="5" style="text-indent:1px;" />
		KB</span> 
  </div>
  <a href="#" onclick="Repair('?action=export&dopost=backup')" class="dataBtn">开始备份数据</a> 
</div>
<div class="pagelist"><div style="text-align:center;padding:10px;font-size:12px;color:#333">
	共<span><?php echo $i; ?></span>个表</div>
</div>
 
</form>


<div class="quickToolbar">
	<div class="qiuckWarp">
			<div class="pagelist">
	  <div class="l-btns">
		<span>选择：</span><span><a href="javascript:CheckAll(form,true);">全部</a></span> - <span><a href="javascript:CheckAll(form,false);">无</a> </span> - <span><a href="#" onclick="Repair('?action=export&dopost=repair')">修复</a> </span> - <span><a href="#" onclick="Repair('?action=export&dopost=optimize')">优化</a> </span> 
	  <span>共有<?php echo $i; ?>个表</span>
	  </div>
	  <div class="l-btns">
	   <span class="inputArea">备份表结构：
			<input type="checkbox" name="isstruct" value="1" checked="checked" />&nbsp;分卷大小：
			<input type="text" name="fsize" class="sort" value="2048"  size="5" style="text-indent:1px;font-size:12px;" />
			KB</span> 
	  </div>
	 <a href="#" onclick="Repair('?action=export&dopost=backup')" class="dataBtn">开始备份数据</a>
	</div>
	</div>
</div>
